// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** analyzeHrInterview POST /api/hr/interview/analyze */
export async function analyzeHrInterviewUsingPost(
  body: API.AnalyzeHrInterviewRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/hr/interview/analyze', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** audioHrInterview GET /api/hr/interview/audio */
export async function audioHrInterviewUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.audioHrInterviewUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<any>('/api/hr/interview/audio', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getHrBodyAction POST /api/hr/interview/body/action */
export async function getHrBodyActionUsingPost(
  body: API.GetBodyActionRequest,
  options?: { [key: string]: any }
) {
  return request<any>('/api/hr/interview/body/action', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** cancelHrInterview GET /api/hr/interview/cancel */
export async function cancelHrInterviewUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.cancelHrInterviewUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/hr/interview/cancel', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** deleteHrInterview GET /api/hr/interview/delete */
export async function deleteHrInterviewUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteHrInterviewUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/hr/interview/delete', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getHrFaceAction POST /api/hr/interview/face/action */
export async function getHrFaceActionUsingPost(
  body: API.GetFaceActionRequest,
  options?: { [key: string]: any }
) {
  return request<any>('/api/hr/interview/face/action', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getHrFaceEmotion POST /api/hr/interview/face/emotion */
export async function getHrFaceEmotionUsingPost(
  body: API.GetFaceEmotionRequest,
  options?: { [key: string]: any }
) {
  return request<any>('/api/hr/interview/face/emotion', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** generateHrInterview POST /api/hr/interview/generate */
export async function generateHrInterviewUsingPost(
  body: API.InterviewGenerateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/hr/interview/generate', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getHrInterviewAnalyzeResult GET /api/hr/interview/get/analyzeResult */
export async function getHrInterviewAnalyzeResultUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getHrInterviewAnalyzeResultUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseHrInterviewAnalyzeResult_>('/api/hr/interview/get/analyzeResult', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getHrInterviewList GET /api/hr/interview/get/user/hrInterview */
export async function getHrInterviewListUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListHrInterview_>('/api/hr/interview/get/user/hrInterview', {
    method: 'GET',
    ...(options || {}),
  })
}
